package com.maya.service;

import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.maya.dao.AnswerDAO;
import com.maya.model.Answer;


@Service
public class AnswerService {
        
	@Autowired
	private AnswerDAO dao;
	
    public void save(Answer ans) {
   	
    	dao.save(ans);
        
    }

	public Answer get(ObjectId objectId) {
		
		return dao.get(objectId);
	}
    
}
